package com.wwtech.epp.ui.activity.main.contract;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.wwtech.epp.db.Friend;
import com.wwtech.epp.entity.CreateGroup;
import com.wwtech.epp.ui.activity.base.BasePresenter;
import com.wwtech.epp.ui.activity.base.BaseView;

import java.util.List;
import java.util.Map;

/**
 * @author hzp
 * @Package The contract for ContactFragment
 * @Description: $description
 * @date 2017/08/21 11:13:55
 */
public interface ContactContract {
    interface View extends BaseView<ContactContractPresenter> {
        /**
         *
         */
        void showProgressDialog();

        /**
         *
         */
        void closeProgressDialog();

        void setFriends(List<Friend> friends);

        void onNodeBack(List<MultiItemEntity> list);

        void onCreateGroupSuccess(CreateGroup createGroup);

//        void onGroupBack();
    }

    interface ContactContractPresenter extends BasePresenter {
//        /**
//         *
//         */
//        void getBusinessInfo(Map map);

        void getFriends(Map map);

        void opFriend(Map map);

        void getAllNode(Map map);

        void initList();

        void getGroup(Map map, String uid);

        void createGroup(Map map);
    }
}